﻿<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%
		if(request.getSession().getAttribute("UnitUserInfo") != null){
			request.getSession().removeAttribute("UnitUserInfo");
		}
		if(request.getSession().getAttribute("UserInfo") != null){
			request.getSession().removeAttribute("UserInfo");
		}
%>

<HTML><HEAD><TITLE>张掖市劳动监察信息管理系统</TITLE>
<style type=text/css>
BODY {
	margin:0; padding:0; font-size:12px; background:url(<%=request.getContextPath() %>/images/bg_loginbody.png) repeat-x;
}
#wrap{
    background:url(<%=request.getContextPath() %>/images/login_warp.png) no-repeat left top;
}
.login{
    margin:0; padding:0;font-size:12px;
}
.login span{
    display:block; float:left; text-align:left; width:50px; height:20px; line-height:20px;
}
.font-black {
	PADDING-LEFT: 8px; FONT-WEIGHT: bold; COLOR: #000; text-align:right;
}
#a {
	BORDER-RIGHT: #aae5e9 1px solid; BORDER-TOP: #aae5e9 1px solid; MARGIN-TOP: 200px; BORDER-LEFT: #aae5e9 1px solid; BORDER-BOTTOM: #aae5e9 1px solid; HEIGHT: 35px
}
HTML {
	SCROLLBAR-FACE-COLOR: #f4f4f4; SCROLLBAR-HIGHLIGHT-COLOR: #c9c9c9; SCROLLBAR-SHADOW-COLOR: #c9c9c9; SCROLLBAR-3DLIGHT-COLOR: #f4f4f4; SCROLLBAR-ARROW-COLOR: #c9c9c9; SCROLLBAR-TRACK-COLOR: #f4f4f4; SCROLLBAR-DARKSHADOW-COLOR: #f4f4f4; SCROLLBAR-BASE-COLOR: #f4f4f4
}
.font-black {
	PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000
}
font {
	FONT-SIZE: 12px; COLOR: #000000
}
font a{
   color:#333; text-decoration:none;
}
font a:hover{
   color:#ff3100;
}
.textbox {
	 BACKGROUND: #ffffff;  height:20px; width:150px; border:1px solid #2190b4;
}
</style>
<SCRIPT language=javascript src="<%=request.getContextPath() %>/js/MD5.js"></SCRIPT>  
<SCRIPT language=javascript>

     function checkuser()   
     {
	       var ProNo = document.frm.mynum;
	       if (ProNo[0].checked == true){
	       	document.frm.action = ProNo[0].value;
	       }else{
	       	document.frm.action = ProNo[1].value;
	       }
           if(document.frm.perFileLoginName.value=="")
           {
              alert("请填写用户名");
              document.frm.perFileLoginName.focus();
		      return false;
           }
           if(document.frm.perFileLoginPass.value=="")
           {
              alert("请填写用户密码");
              document.frm.perFileLoginPass.focus();
		      return false;
           }
           document.frm.submit();
           
           
    }
    
    function document.onkeydown()                //网页内按下回车触发
		{
        if(event.keyCode==13)
        {
        		document.getElementById("Image1").click();   
            return false;                               
        }
		}
    </SCRIPT>
  
<BODY>
<div id="wrap">
<form method="POST" name="frm" action="<%=request.getContextPath() %>/login.do?method=login">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD  vAlign=bottom>
      <TABLE height=256 width=409 cellSpacing=0 cellPadding=0 align=center border=0>
        <TBODY>
          <TD background=<%=request.getContextPath() %>/images/Login_bg.gif>
            <TABLE cellSpacing=0 cellPadding=0 width=300 align=center border=0>
              <TBODY>
              <TR>
                <TD height=37 style="font-size:14px;">&nbsp;<input name=mynum type="radio" value="<%=request.getContextPath() %>/login.do?method=login" checked/>监察人员&nbsp;<input name=mynum type="radio" value="<%=request.getContextPath() %>/login.do?method=unitLogin" />企业用户</TD>
				  </TR>
              <TR>
                <TD  height=19><p class="login"><SPAN class=font-black>用户名</SPAN> 
                  <INPUT  class=textbox id=perFileLoginName  tabIndex=1 size=12 name="perFileLoginName" value="${param.perFileLoginName }"></p>
				   <p style="height:5px; margin:0; padding:0; line-height:0;"></p>
				   <p class="login"><SPAN class=font-black>密&nbsp;&nbsp;码</SPAN> 
				   <INPUT class=textbox id=perFileLoginPass tabIndex=2 type=password size=12 name=perFileLoginPass value="${param.perFileLoginPass }"></p>
                 	 <p ><font color=red>${error }</font></p>
                  </TD>
              </TR>
              <TR align="left">
                <TD  height=29>
				 <p style="height:5px; margin:0; padding:0; line-height:0;"></p>
				&nbsp;
                  <span style="CURSOR: hand" ><IMG id=Image1 height=26 src="<%=request.getContextPath() %>/images/Login_sub01.gif" width=82 
                  border=0 name=Image1 onclick="checkuser()"></span>&nbsp;&nbsp;&nbsp;
				  <IMG id=Image2 height=26 src="<%=request.getContextPath() %>/images/Login_mod01.gif" width=82 
                  border=0 name=Image2 onClick="javascript:window.location.href='<%=request.getContextPath()%>/unit/unitRegister.jsp'">
                   &nbsp;&nbsp;<font>
                    <A HREF="<%=request.getContextPath() %>/admin/uploadFile.jsp">
					下载年审示例文件
					</A>
				   </font>
                 </td>
               </TR>
               </TBODY> </TABLE></TD></TR>
               </TABLE></TD></TR>
  <TR>
    <TD vAlign=top height="120" background=images/Loginbg_01.gif>
      <TABLE cellSpacing=0 cellPadding=0 width=583 align=center border=0>
        <TBODY>
        <TR>
          <TD width=16>&nbsp;</TD>
          <TD width=551>&nbsp; </TD>
          <TD width=16>&nbsp;</TD>
        </TR></TBODY></TABLE>
        </TD></TR></TBODY></TABLE>
        </form>
        </div>
        </BODY></HTML>
